//
//  YJBaseViewController.m
//  Healthfood
//
//  Created by qianfeng01 on 15/7/9.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "YJBaseViewController.h"

@interface YJBaseViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation YJBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

-(void)creatTableView:(NSString *)cellName{
    CGRect frame = self.view.bounds;
    self.tableView = [[UITableView alloc] initWithFrame:frame style:UITableViewStylePlain];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;

    [self.tableView registerNib:[UINib nibWithNibName:cellName bundle:nil] forCellReuseIdentifier:cellName];
    
    [self.view addSubview:self.tableView];
}

-(void)creatHttpRequest{
    self.manager = [AFHTTPRequestOperationManager manager];
    self.manager.responseSerializer = [AFHTTPResponseSerializer serializer]; 
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    return nil;
}

@end
